package com.hbt.en_rem_hou.entitys;

import java.util.LinkedList;
import java.util.List;

public class Word {
    private String src;
    private String tgt;
    private int id;
    private int userid;

    @Override
    public String toString() {
        return "Word{" +
                "src='" + src + '\'' +
                ", tgt='" + tgt + '\'' +
                ", id=" + id +
                ", userid=" + userid +
                ", feature_strs=" + feature_strs +
                ", features=" + features +
                ", cmd='" + cmd + '\'' +
                ", imp='" + imp + '\'' +
                '}';
    }

    private List<String> feature_strs;

    public List<Feature> getFeatures() {
        return features;
    }

    public void setFeatures(List<Feature> features) {
        this.features = features;
    }

    private List<Feature> features;

    public List<String> getFeature_strs() {
        return feature_strs;
    }

    public void setFeature_strs(List<String> feature_strs) {
        features = new LinkedList<>();
        for (int i = 0; i < feature_strs.size();i++){
            Feature feature = new Feature();
            feature.setDescript(feature_strs.get(i));
            features.add(feature);
        }
        this.feature_strs = feature_strs;
    }

    public String getSrc() {
        return src;
    }

    public void setSrc(String src) {
        this.src = src;
    }

    public String getTgt() {
        return tgt;
    }

    public void setTgt(String tgt) {
        this.tgt = tgt;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public String getImp() {
        return imp;
    }

    public void setImp(String imp) {
        this.imp = imp;
    }

    private String cmd;
    private String imp;

}
